<div class="alarmInfoContent">
    <div class="bjui-row col-1 " >
        <label class="row-label">设备名称：</label>
        <div class="row-input">
            <p style="line-height: 34px; color: #f96868;" id="alarmDeviceName"></p>
        </div>
        <label class="row-label">设备 SN：</label>
        <div class="row-input">
            <p style="line-height: 34px; color: #76838f;" id="alarmDeviceSn"></p>
        </div>
        <label class="row-label">设备信息：</label>
        <div class="row-input">
            <p style="line-height: 34px; color: #76838f;" id="alarmDeviceInfo"></p>
        </div>
        <label class="row-label">当前水位：</label>
        <div class="row-input">
            <p style="line-height: 34px; color: #76838f;" id="alarmDeviceWater"></p>
        </div>
        <label class="row-label">报警类型：</label>
        <div class="row-input">
            <p style="line-height: 34px; color: #f96868;" id="alarmDeviceType"></p>
        </div>
    </div>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">关闭</button>
        </li>

    </ul>
</div>
<script>

    $(document).ready(function () {

        $.ajax({
            type:"post",
            url:"/sysmanage/devicealarm/getAlarmInfo.do",
            dataType:"json",
            success:function (data) {
                console.log(data);
                if(data!=null){
                    $("#alarmDeviceName").text(data.devicename);
                    $("#alarmDeviceSn").text(data.sn);
                    $("#alarmDeviceInfo").text(data.deviceinfo);
                    $("#alarmDeviceWater").text(data.waterline);
                    $("#alarmDeviceType").text(data.info);
                    if($("[title='实时监控<span></span>']").length>0){
                        alarmDeviceMapIco(data.lng,data.lat);
                    }
                }
            }
        })

    })

</script>

